#ifndef TRANSPORT_H_
#define TRANSPORT_H_

class Transport{
    public:
        virtual bool init()=0;
        virtual bool read(unsigned char& ch)=0;
        virtual void write(unsigned char* data, unsigned short len) = 0;
        virtual void set_timeout(int t) = 0;
        virtual bool is_timeout() = 0;
        virtual void set_ready(bool ready_state) = 0;
        virtual bool is_ready() = 0;
        virtual unsigned char get_trans_num() = 0;

};
#endif
